.class Lcom/burstly/lib/component/ComponentQueue$1;
.super Ljava/lang/Object;
.source "ComponentQueue.java"

# interfaces
.implements Lcom/burstly/lib/component/IAdaptorController$IComponentQueueLifecycleListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/burstly/lib/component/ComponentQueue;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/burstly/lib/component/ComponentQueue;


# direct methods
.method constructor <init>(Lcom/burstly/lib/component/ComponentQueue;)V
    .locals 0
    .parameter

    .prologue
    .line 137
    iput-object p1, p0, Lcom/burstly/lib/component/ComponentQueue$1;->this$0:Lcom/burstly/lib/component/ComponentQueue;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method private handleFailedItems(Ljava/util/List;)V
    .locals 2
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/burstly/lib/component/FailedToShow;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 161
    .local p1, failed:Ljava/util/List;,"Ljava/util/List<Lcom/burstly/lib/component/FailedToShow;>;"
    iget-object v0, p0, Lcom/burstly/lib/component/ComponentQueue$1;->this$0:Lcom/burstly/lib/component/ComponentQueue;

    iget-object v0, v0, Lcom/burstly/lib/component/ComponentQueue;->mFailedToShow:Ljava/util/Set;

    if-nez v0, :cond_0

    .line 162
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "Can not precess queue without parent failed to show collector!"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 165
    :cond_0
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_1

    .line 166
    iget-object v0, p0, Lcom/burstly/lib/component/ComponentQueue$1;->this$0:Lcom/burstly/lib/component/ComponentQueue;

    iget-object v0, v0, Lcom/burstly/lib/component/ComponentQueue;->mFailedToShow:Ljava/util/Set;

    invoke-interface {v0, p1}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z

    .line 168
    :cond_1
    return-void
.end method


# virtual methods
.method public failedToShow(Ljava/util/List;)V
    .locals 4
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/burstly/lib/component/FailedToShow;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 141
    .local p1, failed:Ljava/util/List;,"Ljava/util/List<Lcom/burstly/lib/component/FailedToShow;>;"
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/ComponentQueue$1;->handleFailedItems(Ljava/util/List;)V

    .line 142
    invoke-static {}, Lcom/burstly/lib/component/ComponentQueue;->access$000()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    const-string v1, "ComponentQueue"

    const-string v2, "Component was failed to show! Moving to next one..."

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 143
    iget-object v0, p0, Lcom/burstly/lib/component/ComponentQueue$1;->this$0:Lcom/burstly/lib/component/ComponentQueue;

    invoke-virtual {v0}, Lcom/burstly/lib/component/ComponentQueue;->printFailedToShowComponents()V

    .line 144
    iget-object v0, p0, Lcom/burstly/lib/component/ComponentQueue$1;->this$0:Lcom/burstly/lib/component/ComponentQueue;

    invoke-virtual {v0}, Lcom/burstly/lib/component/ComponentQueue;->execute()V

    .line 145
    return-void
.end method

.method public startAutorefreshByParam(I)V
    .locals 1
    .parameter "sessionLength"

    .prologue
    .line 172
    iget-object v0, p0, Lcom/burstly/lib/component/ComponentQueue$1;->this$0:Lcom/burstly/lib/component/ComponentQueue;

    iget-object v0, v0, Lcom/burstly/lib/component/ComponentQueue;->mComponentQueueListener:Lcom/burstly/lib/component/ComponentQueue$IQueueComponentListener;

    invoke-interface {v0, p1}, Lcom/burstly/lib/component/ComponentQueue$IQueueComponentListener;->scheduleRequest(I)V

    .line 173
    return-void
.end method

.method public successToshow(Ljava/util/List;)V
    .locals 4
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/burstly/lib/component/FailedToShow;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 149
    .local p1, failed:Ljava/util/List;,"Ljava/util/List<Lcom/burstly/lib/component/FailedToShow;>;"
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/ComponentQueue$1;->handleFailedItems(Ljava/util/List;)V

    .line 150
    iget-object v0, p0, Lcom/burstly/lib/component/ComponentQueue$1;->this$0:Lcom/burstly/lib/component/ComponentQueue;

    invoke-virtual {v0}, Lcom/burstly/lib/component/ComponentQueue;->printUnshownComponents()V

    .line 151
    iget-object v0, p0, Lcom/burstly/lib/component/ComponentQueue$1;->this$0:Lcom/burstly/lib/component/ComponentQueue;

    invoke-virtual {v0}, Lcom/burstly/lib/component/ComponentQueue;->printFailedToShowComponents()V

    .line 152
    invoke-static {}, Lcom/burstly/lib/component/ComponentQueue;->access$000()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    const-string v1, "ComponentQueue"

    const-string v2, "Component showing was tracked on server, stopping queue execution..."

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 153
    return-void
.end method
